package org.yaglyf.registry.eureka;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@SpringBootApplication
@EnableEurekaServer  //定义为注册中心
public class Eureka {

	public static void main(String[] args) {
        //两种启动方式都可以
//        SpringApplication.run(Application.class,args);
		new SpringApplicationBuilder(Eureka.class).web(true).run(args);
	}

}
